package com.situ.project1.service.impl;

import com.situ.project1.mapper.UserMapper;
import com.situ.project1.pojo.Customer;
import com.situ.project1.pojo.User;
import com.situ.project1.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:yzy
 * @date:2024/8/13
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }

    @Override
    public Customer getCustomer(String username) {
        return userMapper.getCustomer(username);
    }

    @Override
    public User findByUser(String username) {
        return userMapper.findByUser(username);
    }

    @Override
    public User getUser(String username) {
        return userMapper.getUser(username);
    }

    @Override
    public Boolean updateUser(User user) {

        return userMapper.updateUser(user);
    }
}
